function login() {
	var userName = dwr.util.getValue("userName");
	GameHost.setLoginUser(userName);
	GameCenter.login(userName,showMainPage);
}

function showMainPage() {
	window.location = "/deskFrame.html";
}

GameHost = {
	loginUser:"",
	setLoginUser:function(userName) {
		this.loginUser = userName;
	},
	getLoginUser:function() {
		return userName;
	}
}
